#!/usr/bin/python3
# @Time    : 2018/6/1 下午 12:40:02  
# @Author  : LaoJI


from . import web
from flask import render_template, request, jsonify,redirect,url_for
from flask_login import current_user



@web.route('/', methods=['GET'])
@web.route('/index', methods=['GET'])
def index():
    if not current_user.is_anonymous:
        return redirect(url_for("web.logsuc"))
    return render_template('index.html')
    # return json.dumps(test), 200, {'content-type':'application/json'}
